import Vue from 'vue'
import Router from 'vue-router'
import login from '@/components/templates/Login'
import Index from '@/components/Index'
import My from '@/components/my/My'
import MyInfo from '@/components/my/MyInfo'
import ModifyPassword from '@/components/my/ModifyPassword'

import PerformanceAppraisal from '@/components/performanceAppraisal/PerformanceAppraisal'
import PerformanceAnalysis from '@/components/performanceAnalysis/PerformanceAnalysis'
import StudentResult from '@/components/performanceAnalysis/StudentResult'
import StudentAchievement from '@/components/studentAchievement/StudentAchievement'

Vue.use(Router)

export default new Router({
  routes: [
    {path: '/',redirect: '/login'},
    {name:'login',path: '/login',component: login},
    {name:'index',path: '/index',component: Index},
    {name:'my',path: '/my',component: My},
    {name:'myinfo',path: '/my/myinfo',component: MyInfo},
    {name:'ModifyPassword',path: '/my/ModifyPassword',component: ModifyPassword},
    
    {name:'performanceAppraisal',path: '/performanceappraisal',component: PerformanceAppraisal},
    {name:'PerformanceAnalysis',path: '/performanceanalysis',component: PerformanceAnalysis},
    {name:'StudentResult',path: '/performanceanalysis/studentresult',component: StudentResult},
    {name:'StudentAchievement',path: '/studentachievement',component: StudentAchievement},
    
   
  ]
})
